let age = 30
console.log(test)
var test = 'hello'
if(true) {
let age = 40
let name = 'David'
console.log('inside 1st code block', age, name) //inside 1st code block 40 David
if(true) {
let age = 50
console.log('inside 2nd code block', age) //inside 2nd code block 50
}
}
console.log('outside code block', age, name) //outside code block 30